<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>px % rem em的区别</title>
</head>
<style>

</style>
<body>
    <div style="font-size: 10px;">
        <p style="height: 2em; font-size: 40px;">测试em</p>
    </div>
</body>
</html>